<?php
namespace app\controller;

use think\Controller;

class Test extends Controller
{
    public function index()
    {
        return json([
            'code' => 1,
            'msg' => '测试控制器工作正常',
            'time' => date('Y-m-d H:i:s')
        ]);
    }
    
    public function mqtt()
    {
        return json([
            'code' => 1,
            'msg' => 'MQTT测试路由工作正常',
            'time' => date('Y-m-d H:i:s')
        ]);
    }
}
